Convergence bounds for empirical nonlinear least-squares