Percolation and gas sensitivity in nanocrystalline metal oxide films