Proton induced X-ray emission as a tool for trace element analysis