Theoretical and computational study of the energy dependence of the muon transfer rate from hydrogen to higher-Z gases