A Network Protocol to Enhance Robustness in Tree-Based WSNs Using Data Aggregation