On the design of distributed air quality monitoring systems