Calculation of electronic properties of amorphous alloys