Parameter estimation in non-linear time series : random coefficient autoregressive and self-exciting threshold models