A mechanistic approach to understanding and predicting southern pine beetle dynamics