Real exchange rates, commodity prices and structural factors