Carbon segregation to a Ni(100) surface in the presence of adsorbed sulfur