Theory of ion-ion recombination in plasmas