Oxygen and carbon isotope ratios in coexisting calcites and dolomites from recent and ancient sediments