Phylogenetic mapping of bacterial morphology