Optimization of the rotor geometry of line-start permanent magnet synchronous motor by the use of particle swarm algorithm