Optimising government investment at different stages of the weed invasion process.