Energy storage in grid-connected Photovoltaic plants