Prediction of lineage-specific gain and loss of sequence elements using phylogenetic maximum parsimony.