Power Factor and Harmonic Distortion Optimization in a Photovoltaic Generating Power Station