Universal correction procedure for electron-probe microanalysis. I. Measurement of X-ray depth distributions in solids