The use of the modified simplex method for automatic phase correction in fourier-transform nuclear magnetic resonance spectroscopy