Power flow control in electric distribution systems integrating storage devices