Chebyshev collocation spectral method for vector radiative transfer equation and its applications in two-layered media