Energy allocation during the maturation of adults in a long-lived insect: implications for dispersal and reproduction