Determination of redox potential