why do mitochondria and chloroplasts have dna in them?