Linking of fractures in layered rocks: Implications for permeability