Stein Mart swings to profit in Q3