'The world is at war,' but religions are not, pope says on way to Krakow