Geometry and mechanics of three-dimensional faults : implications for slip, aftershocks, and paleostress