Approximation algorithm for constructing data aggregation trees for wireless sensor networks