Parameter Identification And Fault Detection For Reliable Control Of Permanent Magnet Motors