Evolution of indirect reciprocity