Quasi-isometric classification of graph manifold groups