Linear Passive Networks with Ideal Switches: Consistent Initial Conditions and State Discontinuities