Scattering of electromagnetic waves by a plane of spheres-formalism