Electronic structure and properties of liquid and amorphous alloys