Intermediate-state imaging of electrical switching and quantum coupling of molybdenum disulfide monolayer