Partial regularity for minima of higher order functionals with p(x)-growth