SPICE ASSISTED SIMULATION OF CONTROLLED ELECTRIC DRIVE: AN APPLICATION TO SWITCHED RELUCTANCE