Intergenerational resource sharing and mortality in a global perspective