Calculation of semiconductor band bending due to a superficial zone including electronic states: Application to Schottky diodes