How to benefit from photovoltaic energy storage