Micromechanical model of shape memory polymer including temperature-strain history dependence