Predictive Control of Grid-Connected Photovoltaic Inverter Optimizing Switching Frequency and Power Quality.