Can photovoltaics be used as batteries