A tertiary plastid uses genes from two endosymbionts