Application of the scattering matrix method for investigating the propagation characteristics of terahertz waves in magnetized dusty plasma