Soil fertility and parasitoids shape herbivore selection on plants