Adaptive flux observer for induction motors with uncertain stator and rotor resistance