Electromagnetic wave scattering by assemblies of particles in the Rayleigh approximation