Unifying fossils and phylogenies for comparative analyses of diversification and trait evolution