When a relationship ends we’re left with the pain of our loss. But we often fail to find our gains. Here’s how to come away with a gift that no once can take from us.