Switched reluctance machine electromagnetic design and optimization