Integral representation of linear functionals on spaces of unbounded functions