Stochastic environmental effects, demographic variation, and economic growth