Diffraction theory and almost periodic distributions