Tool wear monitoring through the neural network classification of diffraction images