Elastic models of rock masses having one, two and three sets of joints