The EU between wars and migration