Phosphoric acid batteries for photovoltaics