Investigation of noncovalent interactions to construct supramolecular switches