Role of dangling bonds at Schottky barriers and semiconductor heterojunctions.