Effect of inhomogeneity, initial stress, sandiness, and viscosity on the propagation of torsional wave