Selective harmonic elimination methods for a cascaded H-bridge converter