The impact of demographic changes on long-term economic growth