The dynamics of the NAIRU model with two switching regimes