Depletion layer consists of