The Effect of Gravitational Compaction on the Structure of Sedimentary Rocks