Reuse of a damaged permanent magnet synchronous motor for torque ripple and acoustic noise elimination using a novel repetitive observer