Steve Carell’s final The Office scenes were ’emotional torture’