Ab initio study of the mobility of Gd+ ions in He and Ar gases