A spectroscopic study of a cyclodextrin-based polymer and the “molecular accordion” effect