Effects of alloying elements on the electronic structure and ductility of NiAl compounds investigated by X-ray absorption fine structure