Analysis of irreversible magnet demagnetization in line-start motors based on the finite-element method