The effects of diagenesis and dolomitization on Ca and Mg isotopes in marine platform carbonates: Implications for the geochemical cycles of Ca and Mg