Disease transmission and the ecological context