Power flow control in electric distribution systems equipped with storage devices