Surface and interface states of (111) faces of semiconductors