A theory of diffuse scattering of waves by ordered phases