On Relationships between Endosymbiosis and the Origin of Plastids and Mitochondria