Australia unexpectedly swings to trade deficit