Electronic structure of metallic glasses