The dynamics of insect–pathogen interactions