International trade and factor productivity as determinants of the real effective exchange rate