Reaction of HF molecules with metal impurities on Si surfaces