Supramolecular Control of Reactivity in the Solid State Using Linear Molecular Templates