Comparison of Fourier and Bayesian analysis of nmr signals. I. Well-separated resonances (the single-frequency case)