Design of a data acquisition system for depth-of-interaction detectors