The impact of photovoltaic charging on batteries