how is solar energy stored in batteries