Thermal inertia of near-Earth asteroids and implications for the magnitude of the Yarkovsky effect