Applications of in situ pH measurements for inorganic carbon calculations