Quantifying periods of diffusion in marine and nonmarine vertebrate fossils using rare earth elements