Quantitative trace-element analysis by proton-induced X-rays