How does energy storage photovoltaic work