Structural basis for the PufX-mediated dimerization of bacterial photosynthetic core complexes.