Role of surface states in the Casimir force between semiconducting films