Spectral distribution of direct and diffuse solar energy received at sea level of a model atmosphere