Shape-memory alloys: macromodelling and numerical simulations of the superelastic behavior