Generation of Fourier-transform-limited heralded single photons