Permanent magnet synchronous motors-steady state and transient performance prediction