The impact of resource limitation and the phenology of parasitoid attack on the duration of insect herbivore outbreaks.