Batteries used in photovoltaic power generation