Japanese Stocks Close Higher on Semiconductor and AI Gains