Metabolic compatibility and the rarity of prokaryote endosymbioses