Morphological traits, niche-environment interaction and temporal changes in diatoms