How battery solar systems work