Demography, Economic Growth, and Capital Flows