Essays on inequality and human capital