Fourier transforms and X-ray diffraction