Design and optimization of a laser-PIXE beamline for material science applications