Prediction of temperature using equivalent thermal network in SPMSM