Wave motion in low-pressure-ratio rectangular and pyramidal shock tubes