Summarize the endosymbiotic theory and explain how it accounts for major structural similarities and differences between bacterial and eukaryotic cells.