Samsung says chips to recover in 2024 after best quarterly profit this year