Locally probing the screening potential at a metal-semiconductor interface