Gender and the development of the migrant system 1850-1930