Temperature control systems for electrical machines