Structure and electronic properties of palladium chains supported by NiAl(1 1 0): A first-principles study