Simulation of Modular Multilevel Converter System Via an Analytical Approach