Extracting feasible robot parameters from dynamic coefficients using nonlinear optimization methods