Simulation and analysis of outbreaks of bark beetle infestations and their management at the stand level