Stav dette: Control of switching systems by invariance analysis