From decay to growth: A demographic transition to economic growth