Robust data gathering for wireless sensor networks