Green's functions in quantum statistical mechanics