Partial Demagnetization of Permanent Magnets in Electrical Machines Caused by an Inclined Field