Intermolecular Structural Change for Thermoswitchable Polymeric Photosensitizer.