Structural insights into the mechanism of homologous recombination