Application of ellipsometry to polymers at interfaces and in thin films