Micromachined gas sensors for environmental pollutants