The surge in Japan’s index was supported by general election speculation and US optimism