From TVs to AI: Japan's old electronics giants tune into digital world