A non-canonical DNA structure enables homologous recombination in various genetic systems