Calculation of pH at equivalence point