Text this: Power flow control in a modular converter with energy storage