Design of terahertz-wave Doppler interferometric velocimetry for detonation physics