Analytical model for subthreshold conduction and threshold switching in chalcogenide-based memory devices | Synapse