Battery Energy Storage Systems to Mitigate the Variability of Photovoltaic Power Generation