Interactions between a fungal pathogen, foliar properties, and generalist herbivores