Giant photonic spin Hall effect empowered by polarization-dependent quasibound states in the continuum in compound grating waveguide structures