Effects of grain-boundary segregation and precipitation on the hydrogen susceptibility of nickel