Error bounds of Lanczos approach for trust-region subproblem