Identifying functional groups in IR spectra using an artificial neural network