Diffraction theory for diffuse scattering by correlated microdomains in materials with several atoms per unit cell