Design and management of a powder diffraction beamline for Line Profile Analysis: A realistic ray-tracing approach