On the impact of demographic change on economic growth and poverty