Robust Design of Motor PWM Control using Modeling and Simulation