Japan's Nikkei 225 share index has topped 40,000 for the first time, lifted by buying of tech stocks