Steven Moffat: I put emotions of leaving Doctor Who into final episode