Modeling of hysteresis due to carbon nanotube-matrix interaction in nanocomposites