Associative ionization and dissociative recombination in mercury vapor