Stopping power of helium gas for 9Be ions from 2 to 31 MeV