Electronic structure calculations of gas adsorption on boron-doped carbon nanotubes sensitized with tungsten