Global optimization of operating strategies for thermal management of electric vehicles