Text this: Residual Energy-Based Strategies for the Transmission Probability and Duty-Cycle Selection in Wireless Sensor Networks