Efficient genome-scale phylogenetic analysis under the duplication-loss and deep coalescence cost models