Gradient Approach to Determination of Tensile Strength of Rocks