Optimization of harmonic performances in multilevel converter structures