A thermodynamical constitutive model for shape memory materials. Part I. The monolithic shape memory alloy