Ecological time lags in biodiversity response to habitat changes.