When exchange-rate volatility affects trade