Best way to fight terrorism is to warmly welcome refugees, pope says