Diffraction of light by arrays of colloidal spheres