Discontinuous and switched dynamical  systems