Determining the stress of rock massif