Control of Schottky barrier height using highly doped surface layers