European countries on the shores of the Mediterranean are preparing for an influx of refugees trying to reach the continent by boat.