On nonlinear TAR processes and threshold estimation