Remove import of cogent.maths.fit_function

Now using `curve_fit` from `scipy.optimize`. A few changes needed to be made as the interface in scipy is different to the interface that was provided by `cogent.maths.fit_function`.