Nondestructive determination of thickness and refractive index of transparent films