Effects of cooling rate on the shape memory effect thermodynamics of NiTi