On the Lanczos and Golub-Kahan reduction methods applied to discrete ill-posed problems