Consequences of sequential attack for resistance to herbivores when plants have specific induced responses