Application of ellipsometry in immersion lithography