A method of determining the depth of impurities by proton-induced X-rays