We’re terrible at measuring other people’s pain—but researchers think there is a better way to treat it