The spectral effects of clouds on solar irradiance