Multi-parametric programming and explicit model predictive control of hybrid systems