On the political economy of immigration