Thermal modeling of second-life repurposed EV battery pack