Peak-to-Peak Output Current Ripple Analysis in Multiphase and Multilevel Inverters