A randomized two-stage iterative method for switched nonlinear systems identification