A diffraction-based degradation sensor for polymer thin films. (August 2017)