A Nonlinear and Linear Model of a Hybrid Stepping Motor