Effects of nutrient supply, herbivory, and host community on fungal endophyte diversity