Towards a global ecology of migration