Selective harmonic elimination in a seven level cascaded multilevel inverter based on graphical analysis