Interfacial layer theory of the Schottky barrier diodes