Japanese judge elected chief of International Court of Justice