On Foundations of the Ultrasonic Nondestructive Method for Determination of Stresses in Near-Surface Layers of Solid Bodies