Propagation of sh waves in an elastic layered media