Brain drain and human capital formation in developing countries: winners and losers