Error estimates for iterative algorithms for minimizing regularized quadratic subproblems