Optical waveguide techniques for structural and chemical analysis in thin film and interfacial systems