A digital method for the determination of the magnetic characteristic of variable reluctance motors