Fourier transforms and iterated function systems