Refugee crisis shows how fate of Turkey, EU are linked