Liz Claiborne swings to profit on sale of brands