Diagenesis in sediments and sedimentary rocks