First-principles study of magnetic effect on the mechanical properties of Ni-rich NiAl with alloying elements