Laser detection of diatomic products of plasma sputtering and etching