Demographic trends, technological progress and economic growth in advanced economies