The evolution of bacterial symbionts and bacteriophages in microbial eukaryotes