Migration, demographic change and income distribution in a model of a developing country