Essays on migration, altruism, and intergenerational mobiilty