Energy dependence of one-nucleon transfer in heavy-ion collisions