Model Predictive Control for Electrical and Mechatronic Systems