Ellipsometry of metallic films and surfaces with nonlocal effects