Determination of pH: Theory and Practice