Gas sensing via chemoresistive effect in nanostructured semiconductors