The second-quarter earnings season has revealed a significant shift: the AI trade is no longer confined to big tech names, as companies across.