An iterative method for linear discrete ill-posed problems with box cons