Supramolecular nanocapsules as platforms for molecular recognition and reactivity in confined spaces