Modeling, analysis, and control of circulating currents in half-bridge modular multilevel converters