A DFT study on the interaction of doped carbon nanotubes with H2S, SO2 and thiophene