An Ion-Activated Molecular Electronic Device