A Topology-Switching Coalitional Control and Observation Scheme with Stability Guarantees