Design of a wireless sensor network for urban pollution monitoring