The duration of travel impacts the spatial dynamics of infectious diseases