The effect of emigration on human capital formation