Spatial heterogeneity of tectonic stress and friction in the crust