Synthesis and applications of DNA and RNA