Surface science aspects of etching reactions