Turn-off angle control of switched reluctance motors for optimum torque output