Molecular switching by electron holes