Modeling, Analysis and Control of Nonlinear Switching Systems