Migration and income transfers in the presence of labor quality externalities