Model predictive control based switching of multimodal controllers in switched systems