Migrants, refugees, victims of war have a right to education, pope says