Outbreaks of colony-forming pests in tri-trophic systems: consequences for pest control and the evolution of pesticide resistance