function for the fast fourier transform of bold signal