Ionization in gaseous detonation waves