Dipole γ-ray emission in fusion heavy-ion reactions: beam energy dependence