Electronic switching in phase-change materials: switching speed, transient phenomena, and resistance drift