Decoupling the effects of clouds and clear atmosphere to compute the solar irradiance at surface