Dirichlet-to-Neumann operator for diffraction problems in stratified anisotropic acoustic waveguides