Partial regularity of degenerate polyconvex energies