A new method for the compensation of ohmic drop in galvanic cells