Maximum likelihood estimation of econometric models with rational expectations of current endogenous variables