Japan's Nikkei posts sharpest weekly gain in nearly two years on AI boost