Growth responses and fitness costs after induction of pathogen resistance depend on environmental conditions