In Davos, Switzerland, and other venues, Americans have been lecturing the Europeans and Japanese about how to fix their economies, often in ways that create resentment.