A constitutive model and its numerical implementation for reversible behavior of shape memory hydrogels