UK judge elected to international court