On an Invariance Principle for Differential-Algebraic Equations with Jumps and its Application to Switched Differential-Algebraic Equations