Detonation shock dynamics of type Ia supernovae