Geometric Theory of Singular Phenomena in Partial Differential Equations