Characterization and spectroscopy of thin films