The dynamics of the trade balance and the terms of trade : a frequency domain analysis