Factors affecting host selection in an insect host–parasitoid interaction