Spatial dynamics of nonlinear prey–predator models with prey migration and predator switching