Structure and dynamics in two-dimensional glass-forming alloys