Quantifying the contribution of community trait mean and diversity to ecosystem functioning