Hofmeister effect in confined spaces: halogen ions and single molecule detection.