Biomineralization and the carbon isotope record