FEA modelling of electrical machines