Evolution of sedimentary rocks