Text this: Design and calibration of a depth-of-interaction detector for neutrons and gamma rays