Study on the attenuation laws of ultrasonic propagation in the inhomogeneous media