Γ-convergence for functionals depending on vector fields. I. Integral representation and compactness