Investigating the internal resistance of cells