Influence of metalloids on the XANES spectra of metallic glasses