Comprehensive Study of 2-D and 3-D Finite Element Analysis of a Switched Reluctance Motor