Photonic spin Hall effect in twisted few-layer anisotropic two-dimensional atomic crystals