Time to digital converter implementation on a configurable digital processor for scintillation detector events