Probabilistic layer identification in a multi-layer fast timing detector for time-of-flight PET using machine learning