The interplay between nutrient balancing and toxin dilution in foraging by a generalist insect herbivore