How to use solar panels as energy storage batteries