A study of detonation structure: The formation ofunreacted gas pockets