Estimation of stress-deformed state of the rocks