Integral representation of local functionals