Determination of the optical parameters of thin foam films