How is relative dating used to date fossils