Fundamentals of Switched reluctance motors