Text this: A hybrid systems approach to control and fault detection and accommodation in power systems