Modelling, Analysis and Co-Design of Wireless Control Networks