Nature and origin of organic matter in carbonates from speleothems, marine cements and coral skeletons