A micromechanics inspired constitutive model for shape-memory alloys: the one-dimensional case