Optimizing data acquisition by sensor-channel co-allocation in wireless sensor networks