Nikkei closes on a high as AI stocks rally