Optimal Management of Environmental Externalities with Time Lags and Uncertainty