Thermal effects and management of lithium ion batteries for automotive applications