Peculiarities of ultrasound propagation through layered structurally inhomogeneous solid bodies