Materials with shape-memory or superelastic properties