Determination of organic and inorganic carbon levels