Negative ion chemistry in Titan's upper atmosphere