A new method for depth of interaction determination in PET detectors