Maximum likelihood estimation of regression models with stochastic trend components