Optical-based spectroscopic methods for measuring chemical, optical, and physical properties of thin polymer waveguide films