X-ray absorption studies of nanocrystalline Ni