Robustness of Neural Networks algorithm for gamma detection in monolithic block detector, Positron Emission Tomography