Off-shell effects in nucleon-exchange reactions