Sampled-data approach to the reduction of uncompensated resistance effects in potentiostatic experiments.