STAN: Smooth Transition Autoregressive Networks