Text this: Application of fuzzy logic in an optimal PWM based control scheme for a multilevel inverter