Battery capacity and temperature changes