The AI boom is helping Samsung and coming for Apple