Taiwan’s leading computer chip maker, TSMC, has reported its net profit surged nearly 40% in the last quarter, boosted by the surge in use of artificial intelligence.