How a thermal management system works in an EV