An efficient way to compute the gas—surface potential with application to “double rainbow” scattering