Modeling of the voltage snap-back in amorphous gst memory devices