From extracellular to intracellular: the establishment of mitochondria and chloroplasts