Building the Knowledge Stock: Lags, Depreciation, and Uncertainty in R&D Investment and Productivity Growth