The phase and amplitude corrected Fourier transform for the detection of small signals