Optimal Inference in Regression Models with Nearly Integrated Regressors