Early marine diagenesis in corals and geochemical consequences for paleoceanographic reconstructions