Legitimate Punishment, Feedback, and the Enforcement of Cooperation