Flexible Third Harmonic Voltage Modulation of Boost Seven-Level Active Neutral-Point-Clamped Inverter With Reduced Voltage Ripple