Analysis of Electromagnetic Behavior of Permanent Magnetized Electrical Machines in Fault Modes