Chemical evolution. 31. Mechanism of the condensation of cyanide to hydrogen cyanide oligomers