Features predisposing forest to bark beetle outbreaks and their dynamics during drought