Exchange of carbon with biological apatite