Zaslat SMS: Control of switching systems by invariance analysis