who played doctor smith in lost in space