Quasi-isometric classification of non-geometric 3-manifold groups