Analysis and design of networked control systems.