On integral representation, relaxation and homogenization for unbounded functionals