A Hybrid Systems Approach for Dynamic Reconfiguration