Dynamics and Control of Complex and Switched Systems