Phylogenetic Inference for Multidomain Proteins