Emigration dynamics in developing countries