Horizontal gene transfer and gene family evolution in photosynthetic unicellular eukaryotes