A new approach to the rational expectations equilibrium: existence, optimality and incentive compatibility