Behavior of slightly perturbed Lanczos and conjugate-gradient recurrences