How to build a photovoltaic energy storage solution