Email (record): A branching process for homology distribution-based inference of polyploidy, speciation and loss