An investigation of the mechanics of rock joints—Part II. Analytical investigation