Power flow in heterogeneous battery systems. (October 2019)