Reduction and optimisation of thermal models using Kirchhoff network theory, implementation to the thermal model of an induction machine