An Evolutionary Algorithm-Based Model Predictive Control for Combined Electrical and Thermal Energy Systems