Dissociation, recombination and attachment processes in the upper atmosphere II. The rate of recombination