Thermal analysis of a high speed electrical machine