Text this: Ultrasonic wave propagation in a layered medium under different boundary conditions