Study of the energy dependence of the underlying event in proton-antiproton collisions