On the Optimization of a MEMS Device for Chemoresistive Gas Sensors