A new Pew survey shows that other countries’ citizens tend to look more favorably on their neighbors.