Optimization experiments on a pixe system and its application to the analysis of trace elements in shaji