Application of algebraic geometry techniques in permanent-magnet DC motor fault detection and identification