A GPU Simulation Tool for Training and Optimisation in 2D Digital X-Ray Imaging