Machines and automation could make more workers migrate