Discrete-time nonlinear Markov switching models: stability, inference and physical applications