During interview, the pontiff also condemned the idea of using walls and barbed wire to keep out foreigners