Thermal design and optimization of high torque density electric machines