Modeling of modular multilevel converters using extended-frequency dynamics phasors