Multi-voltage threshold digitizer using a time-varied threshold for photon-counting X-ray security inspection imaging