Determination of gas exchange threshold by nonparametric regression.