When is the Fourier transform of an elementary function elementary?