In an excerpt from “The Opposite of Happiness: How Bad Feelings Make and Break Us,” Carnegie Mellon professor George Loewenstein turns his attention to one of the most devastating, and enduring, forms of misery: rejection.