Differentiating between H and F or H and CN on C(111) or Si(111) Surfaces