StabilityTheoryofSwitchedDynamicalSystems