A Newton-type method for constrained least-squares data-fitting with easy-to-control rational curves