Modeling and Efficiency Improvement of a Pulse Generator for Wire Electric Discharge Machining