One-dimensional constitutive SMA model with two martensite variants: analytical and numerical solutions