Time stepping finite element analysis for the dynamic performance of a permanent magnet synchronous motor