Spice-Assisted Simulation of Controlled Electric Drives: An Application to Switched Reluctance Drives