The structure of detonation waves in supernovae