First-principles study of chlorine adsorption and reactions on Si ( 100 )