Energy dependence of two-particle transfer in heavy-ion collisions