Synthesis of template-assembled nucleotide quartets