Operation, control, and simulation of modular multilevel converters with embedded energy storage