Species traits and environmental conditions govern the relationship between biodiversity effects across trophic levels