Influence of thin inversion layers on Schottky diodes