Propagation of shear waves across a non-rigid contact of two solid media