Determinants of risk sharing via exports: Trade openness and Specialization