Chemical pseudopotential and semiconductor surface states