The mechanism of electrical threshold switching in VO2 crystals