PWM-Based Optimal Model Predictive Control for Variable Speed Generating Units