Integral representation and Gamma-convergence of variational integrals with p(x)-growth