Coulometric determination of carbonates in rock samples