TD Convergence: An Optimization Perspective