An automatic data reduction and transfer method to aid pattern recognition analysis and classification of NMR spectra