Electronic characterization of heterojunctions by surface potential monitoring