Inclusion-dependent mechanism of modification of cyclodextrins with heterocycles