Gas sensor based on single wall carbon nanotubes