Self-recognition, color signals, and cycles of greenbeard mutualism and altruism