Competition among parasitoids for host during foraging and oviposition