Optimizing the formation of nickel silicide