Optimal control input for discrete-time networked control systems with data dropout