Photochromic and photomechanical responses of an amorphous diarylethene-based polymer: a spectroscopic ellipsometry investigation of ultrathin films