Fractionation of carbon and oxygen isotopes and magnesium between coexisting metamorphic calcite and dolomite