Add automatic first order phase correction
Add automatic first order phase correction

Based on Chen et al: J. Mag. Res. 158, 164-168 (2002), uses entropy
minimization + penalty for negative intensities. When given a sensible
(not too broad) spectral interval it provides usable results out of the box.
This is initial commit of this method, more testing is needed.

New methods:
autoPhase1(self, fromPos, index, start = -1e6, stop = 1e6, derivative = 1, penalty = 1e5, scale  = 'Hz')
phase01(self, fromPos, toPos, correction)

New private methods:
__phase01(self, spectrum, correction)
__entropy(self, spectrum, m)
__penalty(self, spectrum, gamma)
__tryPhase(self, correction, spectrum, m, gamma)

kourk0am/pyNMR,bennomeier/pyNMR