Short range potential variations at a metal-semiconductor interface