Synthesis of phototrappable shape-shifting molecules for adaptive guest binding.