Modelling the interaction between early blight epidemics and host dynamics of tomato