Threshold Shift Observed in Resistive Switching in Metal-Oxide-Semiconductor Transistors and the Effect of Forming Gas Anneal