Trade-off between international and domestic risk sharing in the presence of sovereign risk