Numerical Hilbert transform and automatic phase correction in magnetic resonance spectroscopy