An approximate bandwidth allocation algorithm for tradeoff between fairness and throughput in WSN