Responses of leaf traits to climatic gradients: adaptive variation versus compositional shifts