Propagation of shear waves in a poroelastic layer constrained between two elastic layers