First-principles investigations of the electronic structure and properties related to shape-memory behavior in Mn2NiX (X = Al,Ga,In,Sn) alloys