Fourier dimension and spectral gaps for hyperbolic surfaces