The Evolutionary Stability of Cooperation in the Iterated Prisoner's Dilemma