Nonsmooth analysis and quasi-convexification in elastic energy minimization problems