Switched Systems: State Estimation and control