Effect of climate on traits of dominant and rare tree species in the world’s forests