Zaslat SMS: On the evaluation complexity of constrained nonlinear least-squares and general constrained nonlinear optimization using second-order methods