The dynamics of egg production, oviposition and resorption in a parasitoid wasp