Tree defence and bark beetles in a drying world: carbon partitioning, functioning and modelling.