Computer Simulation Tools for X-ray Analysis