Convex and polyconvex functionals depending on higher order derivatives: partial regularity results