Thermal management of permanent magnet electric machines : an integrated approach of design, monitoring and control