The images of migrants and refugees arriving in precarious boats on the shores of southern Europe, and of the makeshift camps that have sprung up in Lesbos, Lampedusa, Calais and elsewhere, have become familiar sights on television screens around the world.