PIXE analysis by means of an external proton beam