The exchange rate in a dynamic-optimizing business cycle model with nominal rigidities: a quantitative investigation