Depth-dependent atomic valence determination by synchrotron techniques.