An accurate and sensitive method for the determination of the depth distribution of light elements in heavy materials