Essays on inequality and intergenerational mobility