Implementation of carrier-based optimized centered PWM in three-phase three-level inverters