Trade Shocks, Labour Markets and Migration in the First Globalisation