Bang for buck: cost-effective control of invasive species with different life histories