Robert Nairne, 1st Lord Nairne - Scottish judge