Internal deformation due to shear and tensile faults in a half-space