Topological expansion of the 2-matrix model correlation functions: diagrammatic rules for a residue formula