Diagnosis of rotor demagnetization and eccentricity faults for IPMSM based on deep CNN and image recognition