Normal forms and stability in nonsmooth potential elastostatics