Determination of total alkalinity and total dissolved inorganic carbon