Wireless sensor networks for distributed chemical sensing: Addressing power consumption limits with on-board intelligence