Depth profiling in the investigation of industrial processes