Talbots swings to profit on lowered costs