Analysis and Comparison of Peak-to-Peak Current Ripple in Two-Level and Multilevel PWM Inverters