Electrical properties of granular semiconductors : modelling and experiments on metal-oxide gas sensors