The effect of clouds on atmospheric absorption of solar radiation