Integral representation of local functionals depending on vector fields