Spectral fitting method for obtaining the refractive index and thickness of chalcogenide films.