Combined application of spreading-resistance and electron-microprobe depth profiling on GaAs:Zn and Si:P