Cyber-Physical Co-Design of Wireless Control Systems