The formation and structure of gaseous detonation waves