Using local and regional trait hypervolumes to study the effects of environmental factors on community assembly