Role of microstructure in porous silicon gas sensors for NO2