Precise chemical analysis development for Si and GaAs surfaces