A comparison between the structures of amorphous and liquid Ag–Cu and Cu–Mg alloys