A note on locking materials and gradient polyconvexity