Essays on nonstationary econometrics