A variable-response model for parasitoid foraging behavior