Modeling the growth of stylolites in sedimentary rocks