Insect herbivory in ecosystems