Converting Hydrazone-Based Photoswitches into Functional Materials