The Japanese electronics conglomerate is attracting renewed investor attention as a beneficiary of the artificial-intelligence boom.