Modelling dynamic stress changes caused by an extended rupture in an elastic stratified halfspace