Spatio-temporal change in the relationship between habitat heterogeneity and species diversity