A discrete Gauss-Green identity for unbounded Laplace operators, and the transience of random walks