What is the importance of sedimentary layering in studying the Earth's past?