Using electrical analogy to describe mass and charge transport in lithium-ion batteries