A general model for the effect of crop management on plant disease epidemics at different scales of complexity