Reversible encapsulation of terminal alkenes and alkynes