Governments around the world are building increasingly sophisticated surveillance infrastructures to monitor migrants, asylum seekers and refugees at borders and within countries.