Structural heterogeneities and mechanical behavior of amorphous alloys