A model for the temperature and density dependent reemergence of the bark beetle Ips typographus