Automated system to measure the carbonate concentration of sediments