Maximizing Lifetime for Data Aggregation in Wireless Sensor Networks