The role of structure in the magnetic properties of amorphous alloys