Fourier-temporal ghost imaging