Automatic Fourier transform and self-Fourier beams due to a parabolic potential