Modeling and design of a fully integrated gas analyzer using a μGC and NEMS sensors