Multiscale model for predicting shear zone structure and permeability in deforming rock