Shallow earthquakes in a viscoelastic shear zone with depth‐dependent friction and rheology