Dynamic modeling of multi-phase hybrid stepper motors