Japan’s Nikkei ends higher as chip shares track Wall Street gains