Fitting exponential decay curve