Spatial and network aspects of the spread of infectious diseases in livestock populations