FourierFormer: Transformer Meets Generalized Fourier Integral Theorem