How can scientists use the fossil record in sedimentary rock to learn which species lived at different times in Earth's history?