Modular multilevel converters with partially integrated battery energy storage