Electric response of a cell of hydrogel: Role of the electrodes