Dynamic Electro-Thermal Li-ion Battery Model for Control Algorithms