A self-consistent embedding approach to the electronic structure of random systems