Investigation into the Effect of Thermal Management on the Capacity Fade of Lithium-ion Batteries