Propagation of torsional waves in a viscoelastic layer over an inhomogeneous half space