The Shape Design of Permanent Magnet for Permanent Magnet Synchronous Motor Considering Partial Demagnetization