Selection of photovoltaic energy storage battery capacity