Shape memory modeling of a nonlinear and superelastic compliant mechanism