A software tool for the simulation of a digital X-ray imaging system