Analysis of the hysteretic behavior of silicon nanowire transistors