An Econometric Rational-Expectations Macroeconomic Model for Developing Countries with Capital Controls