Torsional waves in a magneto-viscoelastic layer over an inhomogeneous substratum