Numerical optimization of a RIXS spectrometer using raytracing simulations. (August 2016)