Joint spacing in sedimentary rocks