Classifying spectra of emission-line regions with neural networks -- An application to integral field spectroscopic data of M33