Taiwan Semiconductor Manufacturing Co said its sales were boosted by strong demand from smartphone makers and artificial intelligence firms