Theory of surface‐defect states and Schottky barrier heights: Application to InAs