Optical properties of aggregated spheres in the vicinity of a plane surface