Optimization of architecture and advanced control strategies for thermal management of electric vehicles