Determination of the optical constants of evaporated dye layers