Purifying and positive selection in the evolution of stop codons