Gettering of S in Ni from first principles