Modelling and Analysis of Electric Machines