Retention and integration of gene duplicates in eukaryotes