Percolation transition in the gas-induced conductance of nanograin metal oxide films with defects