Key subcellular events involved in the evolution of primary plastids