Phylogenetic aspects of the evolution of self-pollination