Electronic structure of primary solid solutions in metals