Changes in Carbon and Oxygen Isotope Composition during Limestone Diagenesis