Energy-efficient distributed control of large-scale systems: a switched system approach