Rotor Dynamics and Photoinduced Porosity Switch in Supramolecular Architectures and Covalent Frameworks (Invited Oral presentation)