Email Post: Optimal Resource Allocation to Survival and Reproduction in Parasitic Wasps Foraging in Fragmented Habitats