International Court of Justice elects Japanese judge as new president