Experimental measurement of dielectric functions using ellipsometry