Prebiotic competition and evolution in self-replicating polynucleotides can explain the properties of DNA/RNA in modern living systems