Effect of Sorbed Water and Temperature on the Optical Properties and Density of Thin Glassy Polymer Films on a Silicon Substrate