Optimization of Processes with Hybrid Dynamics by combining MPC with Genetic Algorithms