Once dominated by Nvidia, the artificial-intelligence boom is now lifting chip stocks from Broadcom and Marvell to Advanced Micro Devices and Intel.