The Levenberg-Marquardt algorithm for nonlinear least squares curve-fitting problems