A finite-element approach to harmonic core loss prediction in VSI-fed induction motor drives