Automatic Estimation of the Time Origin and Overall Phase of an FID Signal