POWER FLOW IN HETEROGENEOUS BATTERY SYSTEMS