Measurement of pH is affected by what factor?