Three-Dimensional Shock Wave Detection Based on the Theory of Characteristics