Analysis and synthesis of networked control systems: A survey of recent advances and challenges