Estimation of the Optical Constants and the Thickness of Thin Films Using Unconstrained Optimization